//
//  YLMallTitleCollectionViewCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/5.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMallTitleCollectionViewCell.h"
#import "YLMallTitleModel.h"
@interface YLMallTitleCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIView *line;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;

@end

@implementation YLMallTitleCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.backgroundColor = [UIColor whiteColor];
}

- (void)setModel:(YLMallTitleModel *)model
{
    _model = model;
    _icon.image = [UIImage imageNamed:model.icon];
    _titleLabel.text = model.title;
    _contentLabel.text = model.content;
    _line.hidden = model.hiddenLine;
}

+ (NSString *)cellID
{
    return @"YLMallTitleCollectionViewCell";
}

@end
